<{include file="header.tpl"}>
<!-- Start: Main -->
<div id="main">
    <{include file="sidebar.tpl"}>
    <!-- Start: Content -->
    <section id="content">
        <div id="topbar" class="affix">
            <ol class="breadcrumb">
                <li><a href="index.php"><span class="glyphicon glyphicon-home"></span></a></li>
                <li class="active">留言管理</li>
            </ol>
        </div>
        <div class="container">

            <div class="row">
                <div class="col-md-12">
                    <div class="panel">
                        <div class="panel-heading">
                            <div class="panel-title">留言列表</div>
                        </div>
                        <form action="guestbook_list.php?act=delall&page=<{$page}>&pagecount=<{$pagecount}>&pagesize=<{$pagesize}>" method="post">
                            <div class="panel-body ">
                                <table class="table table-striped table-bordered table-hover dataTable ">
                                    <tr class="active">
                                        <th class="text-center" width="100"><input type="checkbox" value="" id="checkall" class=""> 全选
                                        </th>
                                        <th>ID</th>
                                        <th>名字</th>
                                        <th>邮箱</th>
                                        <th>电话</th>
                                        <th>是否显示</th>
                                        <th>留言内容</th>
                                        <th>添加时间</th>
                                        <th width="200">操作</th>
                                    </tr>
                                    <{foreach $guestbook as $item}>
                                    <tr class="success">
                                        <td class="text-center"><input type="checkbox" value="<{$item.msgid}>" name="idarr[]" class="cbox"></td>
                                        <td><{$item.msgid}></td>
                                        <td><{$item.username}></td>
                                        <td><{$item.email}></td>
                                        <td><{$item.phone}></td>
                                        <td><{if $item.isdisplay==1}>是<{else}>否<{/if}></td>
                                        <td style="word-wrap: break-word;"><{$item.content}></td>
                                        <td><{date("Y-m-d H:i:s",$item.addtime)}></td>
                                        <td>
                                            <div class="btn-group">
                                                <a onclick="return confirm('确定要删除吗？');" href="guestbook_list.php?act=del&deleteid=<{$item.msgid}>&page=<{$page}>&pagecount=<{$pagecount}>&pagesize=<{$pagesize}>" class="btn btn-default btn-gradient dropdown-toggle"><span class="glyphicons glyphicon-trash"></span></a>
                                            </div>
                                        </td>
                                    </tr>
                                    <{/foreach}>
                                </table>

                                <div class="pull-left">
                                    <button type="submit" class="btn btn-default btn-gradient pull-right delall"><span
                                                class="glyphicons glyphicon-trash"></span></button>
                                </div>

                                <div class="pull-right">
                                    <{$page_links}>
                                </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- End: Content -->
</div>
<!-- End: Main -->
</body>
</html>